#define _CRT_SECURE_NO_WARNINGS


#include <stdio.h>
void swap(int* q, int n)
{
	for (int i = 0; i < n / 2; i++)
	{
		int tmp = *(q + i);
		*(q + i) = *(q + n - 1 - i);
		*(q + n - 1 - i) = tmp;
	}
}

int main()
{
	int num[10], i, * p = &num[0];
	for (int i = 0; i < 10; i++)
		scanf("%d", &num[i]);
	printf("\n");
	swap(p, 10);
	for (int i = 0; i < 10; i++)
		printf("%d ", num[i]);
	return 0;
}